/* --- Three.js Background Canvases --- */
#body-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Sits behind all content */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Sits behind the hero section's gradient overlay */
}


/* --- Base & Typography --- */
:root {
    --color-pink: #ec4899;
    --color-pink-glow: rgba(236, 72, 153, 0.3);
    --color-blue: #3b82f6;
    --color-blue-glow: rgba(59, 130, 246, 0.3);
    --color-green: #22c55e;
    --color-green-glow: rgba(34, 197, 94, 0.3);
    --animation-speed: 15s;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0A0A0A; /* This is the site-wide universal background color */
    color: #F5F5F5;
    font-family: 'Satoshi', 'Inter', sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Page Transitions & Layout --- */
.page-content {
    display: none;
    min-height: 80vh;
    padding-top: 8rem; /* Increased padding for fixed header */
    padding-bottom: 4rem;
}
.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
#home-page {
    padding-top: 0; /* Hero section doesn't need top padding */
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero & Backgrounds --- */
#hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

/* --- Navigation --- */
header {
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-center {
    background: rgba(22, 22, 22, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-item-more {
    position: relative;
}

.more-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding-top: 10px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.nav-item-more:hover .more-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.more-dropdown-content-new {
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    width: 380px;
}

.more-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.more-item-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
    flex-grow: 1;
    color: white;
    text-decoration: none;
}
.more-item-small:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.more-item-icon {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-item-small-text h4 {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}
.more-item-small-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}


/* --- Buttons & Interactive Elements --- */
.hero-btn {
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #8B5CF6, #6366F1);
}

.hero-btn.primary:hover {
    background: linear-gradient(to right, #a855f7, #ec4899);
}

/* --- Animations & Effects --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.scroller {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll var(--animation-speed) linear infinite;
}

.scroller-container:hover .scroller,
#testimonials-container:hover .scroller {
    animation-play-state: paused;
}


/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* --- Mobile Navigation --- */
#new-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    background-color: #0A0A0A;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
#new-mobile-menu.menu-open {
    transform: translateX(0);
}

/* --- Original Styles from Uploaded File --- */
.announcement-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
}
.new-badge-glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}
.card-glow {
    position: relative;
    overflow: hidden;
}
.card-glow:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 30%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.card-glow:hover:before {
    opacity: 1;
}
.prose {
    line-height: 1.75;
}
.prose h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.prose p, .prose ul, .prose ol {
    margin-bottom: 1.25rem;
}
.prose a {
    color: #a855f7;
    text-decoration: underline;
}
.prose img {
    border-radius: 0.75rem;
}
.skills-scroller-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}
.skills-scroller {
    display: flex;
    flex-wrap: nowrap;
}
.skills-scroller.frontend { animation: scroll 30s linear infinite; }
.skills-scroller.backend { animation: scroll 40s linear infinite reverse; }
.skills-scroller.database { animation: scroll 35s linear infinite; }
.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin: 0 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.skill-item img {
    height: 1.25rem;
    width: 1.25rem;
    object-fit: contain;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}
.contact-form-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 2rem;
}
.contact-form-card input, .contact-form-card textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form-card input:focus, .contact-form-card textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}
.contact-form-card button {
    width: 100%;
    background-color: #8b5cf6;
    color: white;
    font-weight: bold;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s;
}
.contact-form-card button:hover {
    background-color: #7c3aed;
}
.intro-call-card {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}
.intro-call-card img {
    width: 6rem;
    height: 6rem;
    border-radius: 9999px;
    border: 4px solid white;
    margin: 0 auto 1rem;
}
.book-call-btn {
    display: inline-block;
    background-color: white;
    color: black;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}
.book-call-btn:hover {
    transform: scale(1.05);
}
.contact-info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 2rem;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
}
.link-page-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.link-page-tag.dev { background-color: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.link-page-tag.freelance { background-color: rgba(236, 72, 153, 0.2); color: #f9a8d4; }
.link-page-tag.problem { background-color: rgba(34, 197, 94, 0.2); color: #86efac; }

/* UPDATED: Link button with shimmer effect */
.link-page-btn {
    display: block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    position: relative; /* Required for pseudo-element positioning */
    overflow: hidden;   /* Hides the shimmer outside the button */
    z-index: 1;         /* Ensures text is above the shimmer */
}
.link-page-btn:hover {
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.02);
}
.link-page-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}
.link-page-btn:hover::before {
    left: 100%;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.masonry-grid > div {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}
.timeline-step {
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: translateX(-20px);
}
.timeline-step.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.process-timeline .timeline-step:nth-child(2) { transition-delay: 0.2s; }
.process-timeline .timeline-step:nth-child(3) { transition-delay: 0.4s; }
.process-timeline .timeline-step:nth-child(4) { transition-delay: 0.6s; }
.blog-header-section {
    background-size: cover;
    background-position: center;
}

/* --- Redesigned Photo Card --- */
.photo-card-redesigned {
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
}

.photo-card-redesigned .photo-card-image {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.photo-card-redesigned .photo-card-content {
    padding: 1rem 0.5rem 0.5rem;
}

.photo-card-redesigned .photo-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.photo-card-redesigned .photo-card-subtitle {
    font-size: 1rem;
    color: #a0a0a0;
    margin-top: 0.25rem;
}

.photo-card-redesigned .photo-card-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.photo-card-redesigned .photo-card-social-link {
    color: #a0a0a0;
    transition: color 0.2s ease-in-out;
}

.photo-card-redesigned .photo-card-social-link:hover {
    color: #ffffff;
}

.photo-card-redesigned .photo-card-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #a0a0a0;
}

.photo-card-redesigned .status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 9999px;
}

.photo-card-redesigned .photo-card-hire-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none;
}

.photo-card-redesigned .photo-card-hire-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Upcoming Projects Section --- */
.upcoming-projects-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .upcoming-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.upcoming-project-card {
    background-color: #1c1f26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.status-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-tag.in-progress {
    background-color: #facc15;
    color: #422006;
}

.status-tag.coming-soon {
    background-color: #38bdf8;
    color: #0c2e4b;
}

.status-tag.planning {
    background-color: #a78bfa;
    color: #2e1065;
}

.upcoming-project-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.upcoming-project-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.vision-ignited-badge {
    position: absolute;
    top: 18px;
    right: -30px;
    background-color: #ec4899;
    color: white;
    padding: 0.25rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    text-align: center;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3);
}

/* --- Guestbook Header Redesign --- */
#guestbook-header {
    padding: 6rem 0 0 0;
    text-align: center;
    background-image: none;
}

#guestbook-header .small-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #a0a0a0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#guestbook-header .main-heading {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    #guestbook-header .main-heading {
        font-size: 4rem;
    }
}

#guestbook-header .main-heading .gradient-part {
    background: linear-gradient(to right, #f472b6, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#guestbook-header .subtitle {
    font-size: 1.125rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}


/* --- UPDATED: FAQ Accordion Styles --- */
.faq-item {
    border-bottom: 1px solid #333;
}
.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), padding 0.5s ease;
    padding: 0 1rem;
}
.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* User should toggle the 'open' class with JS */
.faq-item.open .faq-answer {
    max-height: 500px; /* Adjust as needed for your content */
    padding: 0 1rem 1.5rem;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg); /* Rotates a '+' into an 'x' */
}


/* --- Animated Statistics Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}


/* --- Media Queries --- */
@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .masonry-grid { column-count: 1; }

    #home-projects-container .grid, #full-projects-container .grid {
        grid-template-columns: 1fr;
    }

    .more-dropdown-content-new {
        width: 90vw;
    }
}


/*
================================================================================
  NEW ANIMATION & TRANSITION STYLES
  Apply these classes to your HTML elements to enable the effects.
  For on-scroll effects, you'll need a little JavaScript to add the 'is-visible'
  class to elements when they enter the viewport.
================================================================================
*/

/* --- [0] UTILITIES & BASE STYLES --- */

/* This class should be added via JavaScript when an element is in the viewport */
.is-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* General purpose fade-in-up animation. Apply this to any section wrapper. */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* General purpose fade-in animation. */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}


/* --- [1] CARD & INTERACTIVE ELEMENT HOVER EFFECTS --- */

/* Apply to any card-like container for a lift and shadow effect */
.interactive-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Apply to an image container for a subtle zoom-in effect on hover */
.image-zoom-container {
    overflow: hidden;
    border-radius: 0.75rem; /* Or your preferred border-radius */
}
.image-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.image-zoom-container:hover img {
    transform: scale(1.1);
}


/* --- [2] SECTION-SPECIFIC ANIMATIONS --- */

/* === 2.1 Staggered List/Grid Animation === */
/* Apply this to the parent container of the items you want to stagger */
.stagger-container .stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
/* You can add more delays as needed */
.stagger-container.is-visible .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-container.is-visible .stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-container.is-visible .stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-container.is-visible .stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-container.is-visible .stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-container.is-visible .stagger-item:nth-child(6) { transition-delay: 0.6s; }


/* === 2.2 Animated Skill Bars === */
/* Use this for skill bars that fill up when they become visible */
.skill-bar-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}
.skill-bar-inner {
    width: 0; /* Set the final width with an inline style, e.g., style="width: 85%;" */
    background: linear-gradient(to right, #8B5CF6, #6366F1);
    height: 12px;
    border-radius: 99px;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}
/* When the wrapper becomes visible, the inner bar will animate to its full width */
.skill-bar-wrapper.is-visible .skill-bar-inner {
    width: var(--skill-level, 80%); /* Use CSS variable for width, set in HTML style attribute */
}


/* === 2.3 Floating Label Inputs for Forms === */
/* Use this HTML structure: <div class="form-group"><input class="form-input" placeholder=" "><label class="form-label">Name</label></div> */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.form-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}
.form-label {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    color: #aaa;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #1a1a1a; /* Match your input's parent background */
    padding: 0 0.25rem;
}
.form-input:focus {
    outline: none;
    border-color: #a855f7;
}
/* This triggers the floating label animation */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.6rem) scale(0.85);
    color: #a855f7;
}


/* --- [3] ACCESSIBILITY --- */

/* Disable animations and transitions if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
